# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class GroupAlarm(object):

    def __init__(self, resourceOption, ruleName, ruleOption, serviceCode, alarmId=None, baseContact=None, createTime=None, enabled=None, noticeOption=None, ruleType=None, ruleVersion=None, status=None, webHookOption=None):
        """
        :param alarmId: (Optional) 报警规则ID
        :param baseContact: (Optional) 告警通知联系人
        :param createTime: (Optional) 创建时间
        :param enabled: (Optional) 是否启用, 1表示启用规则，0表示禁用规则，默认为1
        :param noticeOption: (Optional) 通知策略
        :param resourceOption:  
        :param ruleName:  规则名称，规则名称，最大长度42个字符，只允许中英文、数字、''-''和"_"
        :param ruleOption:  
        :param ruleType: (Optional) 规则类型, 默认为resourceMonitor
        :param ruleVersion: (Optional) 规则版本  v1  v2
        :param serviceCode:  产品线标识，规则对应的serviceCode
        :param status: (Optional) 监控项状态：-1 未启用 1正常，2告警，4数据不足
        :param webHookOption: (Optional) 
        """

        self.alarmId = alarmId
        self.baseContact = baseContact
        self.createTime = createTime
        self.enabled = enabled
        self.noticeOption = noticeOption
        self.resourceOption = resourceOption
        self.ruleName = ruleName
        self.ruleOption = ruleOption
        self.ruleType = ruleType
        self.ruleVersion = ruleVersion
        self.serviceCode = serviceCode
        self.status = status
        self.webHookOption = webHookOption
